import http from '../utils/request'

export const getUrl = (params) => {
    return http.get('/stream', params)
}

export const addUrl = (data) => {
    return http.post('/stream', data)
}

export const editUrl = (data) => {
    return http.put('/stream', data)
}

export const delUrl = (params) => {
    return http.delete('/stream', {data: params})
}